package com.gxa.pojo;


import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;
@ApiModel(value = "采购信息表的实体")
public class Purchase {
    @ApiModelProperty(name = "pur_id",value = "采购信息id",dataType = "Integer",required = false)
  private Integer pur_id;
    @ApiModelProperty(name = "good_id",value = "商品id",dataType = "Integer",required = true)
  private Integer good_id;
    @ApiModelProperty(name = "original_inventory",value = "原有库存",dataType = "Integer",required = true)
    private Integer original_inventory;
    @ApiModelProperty(name = "pur_numb",value = "采购数量",dataType = "Integer",required = true)
  private Integer pur_numb;
    @ApiModelProperty(name = "sh_id",value = "仓库id",dataType = "Integer",required = true)
  private Integer sh_id;
    @ApiModelProperty(name = "su_id",value = "供应商id",dataType = "Integer",required = true)
  private Integer su_id;
    @ApiModelProperty(name = "pur_price",value = "单价",dataType = "BigDecimal",required = true)
  private BigDecimal pur_price;
    @ApiModelProperty(name = "pur_off",value = "折扣",dataType = "BigDecimal",required = false)
  private BigDecimal pur_off;
    @ApiModelProperty(name = "pur_numb_Price",value = "总成本",dataType = "BigDecimal",required = true)
  private BigDecimal pur_numb_Price;
    @ApiModelProperty(name = "pur_freight",value = "运费",dataType = "BigDecimal",required = false)
  private BigDecimal pur_freight;
    @ApiModelProperty(name = "pay_id",value = "支付方式id",dataType = "Integer",required = true)
  private Integer pay_id;
    @ApiModelProperty(name = "employee_id",value = "信息录入员工id",dataType = "Integer",required = true)
  private Integer employee_id;
    @ApiModelProperty(name = "pur_emp_id",value = "采购经办人id",dataType = "Integer",required = true)
  private Integer pur_emp_id;
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(name = "pur_time",value = "采购时间",dataType = "Date",required = false)
  private Date pur_time;
    @ApiModelProperty(name = "pur_remark",value = "备注",dataType = "String",required = false)
  private String pur_remark;
    @ApiModelProperty(name = "payment",value = "支付方式实体",dataType = "Payment",required = false)
    private Payment payment;
    @ApiModelProperty(name = "goods",value = "商品信息实体",dataType = "Goods",required = false)
    private Goods goods;
    @ApiModelProperty(name = "store_house",value = "仓库实体",dataType = "Store_House",required = false)
    private  Store_House store_house;
    @ApiModelProperty(name = "supply",value = "供应商实体",dataType = "Supply",required = false)
    private Supply supply;
    @ApiModelProperty(name = "employee",value = "信息录入员工实体",dataType = "Employee",required = false)
    private Employee employee;
    @ApiModelProperty(name = "purchaseEmployee",value = "采购经办人员工实体",dataType = "Purchase_Employee",required = false)
    private Purchase_Employee purchaseEmployee;


    public Integer getOriginal_inventory() {
        return original_inventory;
    }

    public void setOriginal_inventory(Integer original_inventory) {
        this.original_inventory = original_inventory;
    }

    public Purchase_Employee getPurchaseEmployee() {
        return purchaseEmployee;
    }

    public void setPurchaseEmployee(Purchase_Employee purchaseEmployee) {
        this.purchaseEmployee = purchaseEmployee;
    }

    public Store_House getStore_house() {
        return store_house;
    }

    public void setStore_house(Store_House store_house) {
        this.store_house = store_house;
    }

    public Supply getSupply() {
        return supply;
    }

    public void setSupply(Supply supply) {
        this.supply = supply;
    }

    public Employee getEmployee() {
        return employee;
    }

    public void setEmployee(Employee employee) {
        this.employee = employee;
    }

    public Payment getPayment() {
        return payment;
    }

    public void setPayment(Payment payment) {
        this.payment = payment;
    }

    public Goods getGoods() {
        return goods;
    }

    public void setGoods(Goods goods) {
        this.goods = goods;
    }

    public Integer getPur_id() {
        return pur_id;
    }

    public void setPur_id(Integer pur_id) {
        this.pur_id = pur_id;
    }

    public Integer getGood_id() {
        return good_id;
    }

    public void setGood_id(Integer good_id) {
        this.good_id = good_id;
    }

    public Integer getPur_numb() {
        return pur_numb;
    }

    public void setPur_numb(Integer pur_numb) {
        this.pur_numb = pur_numb;
    }

    public Integer getSh_id() {
        return sh_id;
    }

    public void setSh_id(Integer sh_id) {
        this.sh_id = sh_id;
    }

    public Integer getSu_id() {
        return su_id;
    }

    public void setSu_id(Integer su_id) {
        this.su_id = su_id;
    }

    public BigDecimal getPur_price() {
        return pur_price;
    }

    public void setPur_price(BigDecimal pur_price) {
        this.pur_price = pur_price;
    }

    public BigDecimal getPur_off() {
        return pur_off;
    }

    public void setPur_off(BigDecimal pur_off) {
        this.pur_off = pur_off;
    }

    public BigDecimal getPur_numb_Price() {
        return pur_numb_Price;
    }

    public void setPur_numb_Price(BigDecimal pur_numb_Price) {
        this.pur_numb_Price = pur_numb_Price;
    }

    public BigDecimal getPur_freight() {
        return pur_freight;
    }

    public void setPur_freight(BigDecimal pur_freight) {
        this.pur_freight = pur_freight;
    }

    public Integer getPay_id() {
        return pay_id;
    }

    public void setPay_id(Integer pay_id) {
        this.pay_id = pay_id;
    }

    public Integer getEmployee_id() {
        return employee_id;
    }

    public void setEmployee_id(Integer employee_id) {
        this.employee_id = employee_id;
    }

    public Integer getPur_emp_id() {
        return pur_emp_id;
    }

    public void setPur_emp_id(Integer pur_emp_id) {
        this.pur_emp_id = pur_emp_id;
    }

    public Date getPur_time() {
        return pur_time;
    }

    public void setPur_time(Date pur_time) {
        this.pur_time = pur_time;
    }

    public String getPur_remark() {
        return pur_remark;
    }

    public void setPur_remark(String pur_remark) {
        this.pur_remark = pur_remark;
    }
}
